@extends ('app')
@section('css')
@endsection
@section('nav')
<div class="navbar navbar-inverse" role="navigation">
	<div class="navbar-header">
		<a class="navbar-brand" style="color: " href="{{ URL('/')}}">
			MediCloud
		</a>
	</div>
	<ul class="nav navbar-nav">
		<li class="pull-left">
			<a href="{{ URL('/') }}">
				<span>Patient List</span>
			</a>
		</li>
	</ul>
	<!-- User Account: style can be found in dropdown.less-->
	<ul class="nav navbar-nav navbar-right">
		<ul class="nav navbar-nav">
			<li>
				<form action="{{ URL('/search')}}" method="get" class="navbar-form navbar-left" rol="search">
					<div class="form-group">
						<input type="hidden" name="_token" value="{{ csrf_token()}}">
						<input type="hidden" name="_method" value="">
						<input type="text" class="form-control" placeholder="Search..." name="keyword"/>
					</div>
					<button type="submit" class="btn btn-default">
						<i class="fa fa-search">
						</i>
						Search
					</button>
				</form>
			</li>
		</ul>
		<li class="dropdown navbar-right">
			<a href="#" class="dropdown-toggle" data-toggle="dropdown" type="button">
				<i class="glyphicon glyphicon-user">
				</i>
				<span>{{  session()->get('username') }}
					<i class="caret">
					</i></span>
			</a>
			<ul class="dropdown-menu" role="menu">
				<li>
					<a href="{{ URL('/user/')}}">
						<i class="fa fa-th">
						</i><span>User Info</span>
					</a>
				</li>
				<li>
					<a role="menuitem" href="{{ URL('/auth/logout')}}">
						Log Off
					</a>
				</li>
			</ul>
		</li>
	</ul>
</div>
@endsection
@section('body')
<div class="container">
	<h3>
		<strong>@yield('content-header')</strong>
	</h3>
</div>
<div class="container">
	@yield('content-body')
</div>
@endsection
@section('footer')
<!--
<div id="footer" style="position: fixed;right: 0;left: 0;z-index: 1030;bottom: 0;margin-bottom: 0;height: 30px; min-height: 70px; background-color: #000000; padding-top: 10px;">
	<div id='footer-warpper' class="container">
		<div class="col-md-8">
			<div class="col-md-12">
				<div>
					<a href="http://www.mediworks.biz">
						<span style="font-size:14px;color:#C8CDD0;">MediWorks</span>
					</a>
					<span style="font-size:14px;color:#C8CDD0; padding-left: 10px;">|</span>
					<a href="" style="padding-left: 10px;">
						<span style="font-size:14px;color:#C8CDD0;">About Us</span>
					</a>
				</div>
			</div>
			<div class="col-md-12">
				<span style="font-size:14px;color:#C8CDD0;">Copyright © 2015-2016 MediWorks All Rights Reserved.</span>
				<span style="font-size:14px;color:#C8CDD0; padding-left: 10px;"><strong><em>Tel.</em></strong>(86) 21-54260421 / (86) 23-61255355/56 </span>
				<br />
				<span style="font-size:14px;color:#C8CDD0;">
					<strong><em>Adderss.</em></strong> Chunshen Minhang District, Shanghai, China Road 1985, Lane 69 A floor area
				</span>
			</div>
		</div>
	</div>
</div>-->
@endsection
@section('scrpit')

<script>/*function ct() {
	return document.compatMode == "BackCompat" ? document.body.clientHeight : document.documentElement.clientHeight;
}
var f = document.getElementById('footer');
(window.onresize = function() {
	f.style.position = document.body.scrollHeight > ct() ? '' : 'absolute';
})();*/</script>
@yield('js')
@endsection